package com.atguigu.gulimall.auth.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.auth.vo.RegisterUserVo;
import com.atguigu.gulimall.auth.vo.SocialUserVo;
import com.atguigu.gulimall.auth.vo.UserLoginVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @ClassName MemberFeignService
 * @Description TODO
 * @Detail detail
 * @Author MyPC
 * @Date 2020/7/11
 * @Version 1.0
 */
@FeignClient("gulimall-member")
public interface MemberFeignService {
    @PostMapping("/member/member/register")
    R register(@RequestBody RegisterUserVo vo);

    @PostMapping("/member/member/login")
    R login(@RequestBody UserLoginVo vo);

    @PostMapping("/member/member/oauth/login")
    R login(@RequestBody SocialUserVo vo);
}
